<?php
/**
 * preview attachments
 */
require("global.php");
if(empty($_GET['id'])){
	$picture_src = URL."images/watermark.png";
}
if (isset($_GET['source'])) {
	$file_source = trim($_GET['source']);
	$picture_src = URL."media/attachment/".$file_source;
}
setvar("img_src", $picture_src);
template($theme_name."/element.viewpic");
?>